package com.cjh.dubbo;

import com.cjh.DemoDubboService;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.concurrent.locks.LockSupport;

/**
 *org.example
 *2024/7/23 10:02
 *
 *@author chenjh
 */
@DubboService
public class DemoDubboServiceImpl implements DemoDubboService {


    @Override
    public String delay100(String name) {
        LockSupport.parkNanos(1000000_00);
        return "success";
    }

    @Override
    public String delay500(String name) {
        LockSupport.parkNanos(5000000_00);
        return "success";
    }
}
